home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / g_man / cat3 / standard / screenspace.z / screenspace
Text File  |  1998-10-20  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee((((3333GGGG))))                                                ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee - map world space to absolute screen coordinates
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee(((())))
  13.  
  14. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  15.      _n_o_n_e
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee sets the projection matrix and viewport of the current window
  19.      so as to map world space to absolute screen coordinates (instead of to
  20.      the more usual window-relative screen coordinates).  This provides a
  21.      convenient coordinate system for operations that are not constrained to a
  22.      window, e.g. reading pixels.
  23.  
  24.      ssssccccrrrreeeeeeeennnnssssppppaaaacccceeee is equivalent to:
  25.  
  26.           long xmin, ymin;
  27.  
  28.           getorigin(&xmin, &ymin);
  29.           viewport(-xmin, getgdesc(GD_XPMAX)-xmin,
  30.                    -ymin, getgdesc(GD_YPMAX)-ymin);
  31.           ortho2(-0.5, getgdesc(GD_XPMAX)+0.5,
  32.                  -0.5, getgdesc(GD_YPMAX)+0.5);
  33.  
  34.  
  35. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  36.      fullscrn, getgdesc, getorigin, viewport, ortho2
  37.  
  38. NNNNOOOOTTTTEEEE
  39.      This routine is available only in immediate mode.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.